<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>设置视频【{$data['title']}】栏目<button class="btn btn-default btn-return" onclick="javascript:history.back(-1);return false;"><i class="glyphicon glyphicon-share-alt"></i> 返 回</button></h2>
    </div>
    <div class="tab-content">
    <form action="" method="post" class="form">
        <div class="form-item form-group">
            <label class="item-label">栏目</label>
            <div class="controls">
                <!-- <select name="topics[]" multiple=""> -->
                    <volist name="topic" id="t">
                        <label class="checkbox-inline"><input <eq name="t.selected" value="1">checked</eq> value="{$t.id}" type="checkbox" name="topics[]" value="{$t.id}">{$t.title}</label>
                        <!-- <option <eq name="t.selected" value="1">selected</eq> value="{$t.id}">{$t.title}</option> -->
                    </volist>
                <!-- </select> -->
            </div>
        </div>
        <div class="form-item">
            <label class="item-label form-group">是否首推<span class="check-tips"> ( 必须选择对应的栏目, 才能生效 )</span></label>
            <div class="controls">
                <volist name="topic" id="t">
                    <label class="checkbox-inline"><input value="{$t.id}" type="checkbox" name="setHome[]" value="{$t.id}">{$t.title}</label>
                </volist>
            </div>
        </div>
        <div class="form-item form-action">
            <button class="btn submit-btn ajax-post btn-success btn-block" id="submit" type="submit" target-form="form">确 定</button>
            <!-- <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button> -->
        </div>
    </form>
    </div>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Video/index')}');
        showTab();
        
    </script>
</block>
